package com.doyens.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "员工实体类")
@TableName("sch_employee")
public class Employee implements Serializable {

    @TableId(value="emp_id",type = IdType.AUTO)
    @ApiModelProperty(value = "员工编号")
    private Integer empId;

    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    @ApiModelProperty(value = "职位id")
    private Integer postId;

    @ApiModelProperty(value = "员工性名")
    private String empName;

    @ApiModelProperty(value = "员工账号")
    private String username;

    @ApiModelProperty(value = "员工密码")
    private String password;

    @ApiModelProperty(value = "员工性别")
    private String sex;

    @ApiModelProperty(value = "员工手机号")
    private String phone;

    @ApiModelProperty(value = "员工状态")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
